#ifndef BASEMATERIALEDITOR_H
#define BASEMATERIALEDITOR_H

#include <baseeditor.h>
#include <materialmanager.h>
#include <QWidget>

class BaseMaterialEditorWidget : public BaseEditorWidget
{
  Q_OBJECT
private:
  MaterialData*   _item;

private slots:
  virtual void Changed ();

protected:
  BaseMaterialEditorWidget (QWidget *parent = 0);

public:
  void SetItem (MaterialData* item);
  MaterialData* GetItem ();

  virtual void* GetData ();

signals:
  void Changed (BaseEditorWidget* editor, MaterialData* item);


};

#endif // BASEMATERIALEDITOR_H
